home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / folder watching / folder watcher fba / fba.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.6 KB  |  52 lines

  1. /*
  2.     File:        FBA.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Greg Sutton    
  7.  
  8.     Copyright:    Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/21/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #pragma once
  24.  
  25.  
  26. #include <Types.h>
  27.  
  28. // Use this DEVELOPMENT #define to allow debugging with source level debugger.
  29. // You must also change the following flags for the 'SIZE' resource
  30. //    Set 'doesAcivateOnFGSwitch' to 1
  31. //    Set 'onlyBackground'        to 0
  32. // You can use a script to quit the application - no menu bar you see
  33. //#define DEVELOPMENT
  34.  
  35. #define kFatalErr             1
  36. #define kNotFatalErr         0
  37.  
  38. #define kCycleTimeResource        'Cycl'    // Tim in seconds to check all folders
  39. #define kWatchFolderResource    'WFol'    // This resource stores all the folders to watch
  40. #define kTargetAppResource        'Targ'    // Stores creator type of target application
  41.                                         //  for modification Apple events.
  42.  
  43. #define    kFolderWatcherSuite        'wFWS'    // Our private Apple events to indicate modifications
  44.  
  45. enum
  46. {
  47.     kTypeFileAdded = 'wTFA', kTypeFileRemoved = 'wTFR', kTypeFileModified = 'wTFC'
  48. };
  49.  
  50.  
  51. unsigned long    GetCycleTime( void );
  52.